﻿//pub domain
document.domain = "2hua.com";

//top ad begin
function fTopFirst(){
var o = {};
switch(ip_area)
{
    case "3":
        o.middle='<h3><a href="http://www.xiufubao.com?from=2huahead" target=_blank>巧妙祛妊娠纹，拴住老公心（图）</a></h3>';
        o.middle1= '<h4><a href="http://www.yanjiuweishi.com?from=2huahead" target=_blank>喝酒千杯不醉的秘密武器！（图）</a></h4>';
        o.middle2='<h5><a href="http://www.dieyifang.org?from=2huahead" target=_blank>明星支招：如何去掉黑眼圈、眼纹</a></h5>';
        break;
    case "2":
        o.middle='<h3><a href="http://www.xiufubao.com?from=2huahead" target=_blank>巧妙祛妊娠纹，拴住老公心（图）</a></h3>';
        o.middle1= '<h4><a href="http://kafei.3230.com?from=2huahead" target=_blank>减肥私房话：轻松瘦了30斤！！！</a></h4>';
        o.middle2='<h5><a href="http://www.dieyifang.org?from=2huahead" target=_blank>明星支招：如何去掉黑眼圈、眼纹</a></h5>';
        break;
    default:
        o.middle='<h3><a href="http://www.xiufubao.com?from=2huahead" target=_blank>巧妙祛妊娠纹，拴住老公心（图）</a></h3>';
        o.middle1= '<h4><a href="http://kafei.3230.com?from=2huahead" target=_blank>减肥私房话：轻松瘦了30斤！！！</a></h4>';
        o.middle2='<h5><a href="http://www.dieyifang.org?from=2huahead" target=_blank>明星支招：如何去掉黑眼圈、眼纹</a></h5>';
}

return o;
}

function fTopSecond(){
var o = {};
switch(ip_area)
{
    case "3":
        o.middle='<h3><a href="http://syb.3230.com?from=2huahead" target=_blank>女性“阴道松弛”-怎么办？</a></h3>';
        o.middle1= '<h4><a href="http://www.yanjiuweishi.com?from=2huahead" target=_blank>喝酒千杯不醉的秘密武器！（图）</a></h4>';
        o.middle2='<h5><a href="http://kafei.3230.com?from=2huahead" target=_blank>咖啡减肥---1天轻松减1斤</a></h5>';
        break;
    case "2":
        o.middle='<h3><a href="http://www.dieyifang.org?from=2huahead" target=_blank>支招：巧祛黑眼圈、眼袋、眼纹</a></h3>';
        o.middle1= '<h4><a href="http://www.meirubao.com?from=2huahead" target=_blank>女人丰满挺拔--老公最爱(图)</a></h4>';
        o.middle2='<h5><a href="http://kafei.3230.com?from=2huahead" target=_blank>咖啡减肥---1天轻松减1斤</a></h5>';
        break;
    default:
        o.middle='<h3><a href="http://www.dieyifang.org?from=2huahead" target=_blank>支招：巧祛黑眼圈、眼袋、眼纹</a></h3>';
        o.middle1= '<h4><a href="http://www.yanjiuweishi.com?from=2huahead" target=_blank>喝酒千杯不醉的秘密武器！（图）</a></h4>';
        o.middle2='<h5><a href="http://kafei.3230.com?from=2huahead" target=_blank>咖啡减肥---1天轻松减1斤</a></h5>';
}

return o;
}

function fTopThird(){
var o = {};
switch(ip_area)
{
    case "3":
        o.middle='<h3><a href="http://www.meirubao.com?from=2huahead" target=_blank>女人丰满挺拔--老公最爱(图)</a></h3>';
        o.middle1= '<h4><a href="http://www.yanjiuweishi.com?from=2huahead" target=_blank>喝酒千杯不醉的秘密武器！（图）</a></h4>';
        o.middle2='<h5><a href="http://kafei.3230.com?from=2huahead" target=_blank>女人必知：绝对好的减肥秘笈(图) </a></h5>';
        break;
    case "2":
        o.middle='<h3><a href="http://www.meirubao.com?from=2huahead" target=_blank>女人丰满挺拔--老公最爱(图)</a></h3>';
        o.middle1= '<h4><a href="http://qingban100.3230.com?from=2huahead" target=_blank>7天淡化色斑，28天肌肤净白无暇</a></h4>';
        o.middle2='<h5><a href="http://kafei.3230.com?from=2huahead" target=_blank>女人必知：绝对好的减肥秘笈(图) </a></h5>';
        break;
    default:
        o.middle='<h3><a href="http://www.meirubao.com?from=2huahead" target=_blank>女人丰满挺拔--老公最爱(图)</a></h3>';
        o.middle1= '<h4><a href="http://www.yanjiuweishi.com?from=2huahead" target=_blank>喝酒千杯不醉的秘密武器！（图）</a></h4>';
        o.middle2='<h5><a href="http://kafei.3230.com?from=2huahead" target=_blank>女人必知：绝对好的减肥秘笈(图) </a></h5>';
}

return o;
}
//top ad end

//counter code - www
function web_pv_counter(){
var o={};
o.middle="<script src='http://db1.adpower.cn/ana/adptrack-2hua.js'></script><script src='http://s131.cnzz.com/stat.php?id=1137707&web_id=1137707' language='JavaScript' charset='gb2312'></script><script src='http://w.cnzz.com/c.php?id=30024656&l=3' language='JavaScript' charset='gb2312'></script><script type='text/javascript' src='http://js.tongji.linezing.com/1518292/tongji.js'></script><script src='http://s1.datamaster.com.cn/dma.js?4b6a213fab04e' type='text/javascript'></script>";
return o;
}

//counter code - zs
function web_pv_counter_zs(){
var o={};
//o.middle="<script src='http://v14.cnzz.com/stat.php?id=1484904&web_id=1484904' language='JavaScript' charset='gb2312'></script><script src='http://w.cnzz.com/c.php?id=30023606&l=3' language='JavaScript' charset='gb2312'></script>";
o.middle="<script src='http://v14.cnzz.com/stat.php?id=1484904&web_id=1484904' language='JavaScript' charset='gb2312'></script>";
return o;
}

//foot link hzmt
function hz_yq(id){
	for(i=0;i<2;i++)
	{
		document.getElementById("hz_yq0"+i).className="hzmt1";
		document.getElementById("hz_yq"+i).style.display="none";
	}
		document.getElementById("hz_yq0"+id).className="hzmt";
		document.getElementById("hz_yq"+id).style.display="block";
}

//top scroll ad
function scrollInterval()
{  var demo_f=document.getElementById("demo_f");
   var demo1_s=document.getElementById("demo1_s");
   var demot=document.getElementById("demot");	
   demot.innerHTML=demo1_s.innerHTML;
   if(demo_f.scrollTop==2*demo1_s.scrollHeight-demo_f.offsetHeight)
   {   demo_f.scrollTop=demo1_s.scrollHeight-demo_f.offsetHeight;     		 
    }
   else
   {    demo_f.scrollTop=demo_f.scrollTop+1;   }
   if((demo_f.scrollTop)%35==0)
   { 
     window.setTimeout( "scrollInterval()", 4000 );   }
   else 
   {    window.setTimeout( "scrollInterval()", 10 );   }
}
//top scroll load
window.onload=function ()
{    
    if (document.getElementById("demo_f") != null)
    {
        var demo_f=document.getElementById("demo_f");
        var demo1_s=document.getElementById("demo1_s");
        var demot=document.getElementById("demot");
        window.setTimeout("scrollInterval()",2000);
     }
}
//loader counter - default
function play_other_ad2()
{
    //cnzz
    var t=web_pv_counter();
    if (document.getElementById("pv_counter").innerHTML == "" || document.getElementById("pv_counter").innerHTML == "文件载入中,请稍候...")
    {
        document.getElementById("pv_counter").innerHTML = document.write(t.middle);
    }
}
//loader counter - zs
function play_other_adzs()
{
    //cnzz
    var t=web_pv_counter_zs();
    if (document.getElementById("pv_counter").innerHTML == "" || document.getElementById("pv_counter").innerHTML == "文件载入中,请稍候...")
    {
        document.getElementById("pv_counter").innerHTML = document.write(t.middle);
    }
}

// area js
function getCookie(objName)
{//获取指定名称的cookie的值
	var arrStr = document.cookie.split("; ");
	for(var i = 0;i < arrStr.length;i ++){
	var temp = arrStr[i].split("=");
	if(temp[0] == objName) return unescape(temp[1]);
	} 
}	
var display=getCookie("bjip");
if(display!="no" && display!="yes")
{
	document.write("<script src='http://www.2hua.com/ajax/adinterface.aspx?ad=11&t=1' language='JavaScript'></script>");
}